package com.ksc.wordcount.datasourceapi;

import java.io.Serializable;
/**
 * 表示划分后的分区文件，包含分区ID和分区内的文件切分数组。
 */
public class PartionFile implements Serializable {
    private int partionId;
    private FileSplit[] fileSplits;

    public PartionFile(int partionId, FileSplit[] fileSplits) {
        this.partionId = partionId;
        this.fileSplits = fileSplits;
    }

    public FileSplit[] getFileSplits() {
        return fileSplits;
    }

    public int getPartionId(){
        return partionId;
    }
}
